This commit is contained in:
Jesper Wilhelmsson 2016-12-08 17:03:45 +01:00
commit 65ae405a5b
62 changed files with 736 additions and 465 deletions

View file

@ -65,6 +65,7 @@ private:
bool _can_read_all_unnamed;
bool _has_default_read_edges; // JVMTI redefine/retransform support
bool _must_walk_reads; // walk module's reads list at GC safepoints to purge out dead modules
bool _is_patched; // whether the module is patched via --patch-module
TRACE_DEFINE_TRACE_ID_FIELD;
enum {MODULE_READS_SIZE = 101}; // Initial size of list of modules that the module can read.
@ -79,6 +80,7 @@ public:
_can_read_all_unnamed = false;
_has_default_read_edges = false;
_must_walk_reads = false;
_is_patched = false;
}
Symbol* name() const { return literal(); }
@ -133,6 +135,13 @@ public:
return prev;
}
void set_is_patched() {
_is_patched = true;
}
bool is_patched() {
return _is_patched;
}
ModuleEntry* next() const {
return (ModuleEntry*)HashtableEntry<Symbol*, mtModule>::next();
}