public class MetaspaceInfo extends Object
Method
and Constructor
in CodeCache.
Present as MethodInfoEntry
collection.Modifier and Type | Field and Description |
---|---|
static int |
FULL_OPTIMIZATION |
static int |
FULL_PROFILE |
static int |
LIMITED_PROFILE |
static int |
NONE |
static int |
SIMPLE |
Constructor and Description |
---|
MetaspaceInfo() |
Modifier and Type | Method and Description |
---|---|
static String |
calculateConstructorSignature(Constructor ctor)
helper function that calculate
Constructor signature |
static String |
calculateMethodSignature(Method method)
helper function that calculate
Method signature |
static void |
clear()
clear local java cache
|
static int |
getCompileLevel(Constructor ctor)
get target
Constructor compile level |
static int |
getCompileLevel(Method m)
get target
Method compile level |
static ConcurrentHashMap<MethodInfoKey,Deque<MethodInfoEntry>> |
getMethodsByLevel(int level)
get method (represent as
MethodInfoEntry collection with given compile level. |
static void |
refresh()
refresh local java cache from JVM CodeCache
|
static boolean |
tryResolveMethod(MethodInfoEntry entry)
|
public static final int NONE
public static final int SIMPLE
public static final int LIMITED_PROFILE
public static final int FULL_PROFILE
public static final int FULL_OPTIMIZATION
public static boolean tryResolveMethod(MethodInfoEntry entry)
entry
- method info entryMethod
or Constructor
successfulpublic static ConcurrentHashMap<MethodInfoKey,Deque<MethodInfoEntry>> getMethodsByLevel(int level)
MethodInfoEntry
collection with given compile level.level
- compile levelMethodInfoEntry
) collectionpublic static void refresh()
public static void clear()
public static int getCompileLevel(Method m)
Method
compile levelm
- methodpublic static int getCompileLevel(Constructor ctor)
Constructor
compile levelctor
- constructorpublic static String calculateMethodSignature(Method method)
Method
signaturemethod
- target methodpublic static String calculateConstructorSignature(Constructor ctor)
Constructor
signaturector
- target Constructor
"Copyright 2018, Alibaba, Inc."