Menu

#22 The time order of gc_wrapup

open
nobody
None
5
2001-07-05
2001-07-05
Wu Gansha
No

I have a test case showing the time order of orp_exit
has problems.
void orp_exit(){
......
orp_delete_all_jits();
......
gc_wrapup();
......
}
and gc_wrapup() calls wrapup_gc().
void wrapup_gc(){
......
//position 1
p_gc->run_all_finalizers();
}

Consider:
At positon 1, we have a class whose finalizer hasn't
been JITed, and run_all_finalizers() will resort to
JIT engine for compiling it. But orp_delete_all_jits()
has been removed all the JIT handles.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB