From ac2df89113d6ead77032aaa21cf2b0253c8975db Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Tue, 29 Dec 2020 23:01:10 -0800 Subject: Stop managing valid class serials `mjit_valid_class_serial_p` has no longer been used since b9007b6c548. --- mjit_worker.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'mjit_worker.c') diff --git a/mjit_worker.c b/mjit_worker.c index ba90cca7b6..ea6b896889 100644 --- a/mjit_worker.c +++ b/mjit_worker.c @@ -240,9 +240,6 @@ static bool worker_stopped; // Path of "/tmp", which can be changed to $TMP in MinGW. static char *tmp_dir; -// Hash like { 1 => true, 2 => true, ... } whose keys are valid `class_serial`s. -// This is used to invalidate obsoleted CALL_CACHE. -static VALUE valid_class_serials; // Used C compiler path. static const char *cc_path; @@ -488,16 +485,6 @@ real_ms_time(void) } #endif -// Return true if class_serial is not obsoleted. This is used by mjit_compile.c. -bool -mjit_valid_class_serial_p(rb_serial_t class_serial) -{ - CRITICAL_SECTION_START(3, "in valid_class_serial_p"); - bool found_p = rb_hash_stlike_lookup(valid_class_serials, LONG2FIX(class_serial), NULL); - CRITICAL_SECTION_FINISH(3, "in valid_class_serial_p"); - return found_p; -} - // Return the best unit from list. The best is the first // high priority unit or the unit whose iseq has the biggest number // of calls so far. -- cgit v1.2.3