mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8223621: Move Universe usage out of oopRecorder.hpp
Reviewed-by: coleenp, lkorinth
This commit is contained in:
parent
cd6079acdd
commit
34c357ee6f
4 changed files with 49 additions and 10 deletions
|
@ -77,9 +77,7 @@ template <class T> class ValueRecorder : public StackObj {
|
|||
}
|
||||
|
||||
// Helper function; returns false for NULL or Universe::non_oop_word().
|
||||
bool is_real(T h) {
|
||||
return h != NULL && h != (T)Universe::non_oop_word();
|
||||
}
|
||||
inline bool is_real(T h);
|
||||
|
||||
// copy the generated table to nmethod
|
||||
void copy_values_to(nmethod* nm);
|
||||
|
@ -207,9 +205,7 @@ class OopRecorder : public ResourceObj {
|
|||
int oop_count() {
|
||||
return _oops.count();
|
||||
}
|
||||
bool is_real(jobject h) {
|
||||
return _oops.is_real(h);
|
||||
}
|
||||
inline bool is_real(jobject h);
|
||||
|
||||
int allocate_metadata_index(Metadata* oop) {
|
||||
return _metadata.allocate_index(oop);
|
||||
|
@ -226,9 +222,7 @@ class OopRecorder : public ResourceObj {
|
|||
int metadata_count() {
|
||||
return _metadata.count();
|
||||
}
|
||||
bool is_real(Metadata* h) {
|
||||
return _metadata.is_real(h);
|
||||
}
|
||||
inline bool is_real(Metadata* h);
|
||||
|
||||
bool is_unused() {
|
||||
return _oops.is_unused() && _metadata.is_unused();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue