summaryrefslogtreecommitdiff
path: root/mjit_worker.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2020-12-29 23:01:10 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2020-12-29 23:01:11 -0800
commitac2df89113d6ead77032aaa21cf2b0253c8975db (patch)
tree156c6a203d57e3891e666cfa2e3bd6566100a62d /mjit_worker.c
parent11b8bb99e6722253974c73d96ed653f97495e1c5 (diff)
Stop managing valid class serials
`mjit_valid_class_serial_p` has no longer been used since b9007b6c548.
Diffstat (limited to 'mjit_worker.c')
-rw-r--r--mjit_worker.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/mjit_worker.c b/mjit_worker.c
index ba90cca..ea6b896 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.