1074 assert(is_alive != NULL, "Should be non-NULL"); |
1074 assert(is_alive != NULL, "Should be non-NULL"); |
1075 // A non-NULL is_alive closure indicates that this is being called during GC. |
1075 // A non-NULL is_alive closure indicates that this is being called during GC. |
1076 flush_dependencies(is_alive); |
1076 flush_dependencies(is_alive); |
1077 |
1077 |
1078 // Break cycle between nmethod & method |
1078 // Break cycle between nmethod & method |
1079 if (log_is_enabled(Trace, classunload)) { |
1079 if (log_is_enabled(Trace, class, unload)) { |
1080 outputStream* log = Log(classunload)::trace_stream(); |
1080 outputStream* log = Log(class, unload)::trace_stream(); |
1081 log->print_cr("making nmethod " INTPTR_FORMAT |
1081 log->print_cr("making nmethod " INTPTR_FORMAT |
1082 " unloadable, Method*(" INTPTR_FORMAT |
1082 " unloadable, Method*(" INTPTR_FORMAT |
1083 "), cause(" INTPTR_FORMAT ")", |
1083 "), cause(" INTPTR_FORMAT ")", |
1084 p2i(this), p2i(_method), p2i(cause)); |
1084 p2i(this), p2i(_method), p2i(cause)); |
1085 if (!Universe::heap()->is_gc_active()) |
1085 if (!Universe::heap()->is_gc_active()) |