@@ -39,17 +39,17 @@ class GC_FinalizableObjectBuffer
39
39
private:
40
40
j9object_t _systemHead; /* *< the head of the linked list of finalizable objects loaded by the system class loader */
41
41
j9object_t _systemTail; /* *< the tail of the linked list of unfinalized objects loaded by the system class loader */
42
- UDATA _systemObjectCount; /* *< the number of buffered objects loaded by the system class loader */
42
+ uintptr_t _systemObjectCount; /* *< the number of buffered objects loaded by the system class loader */
43
43
j9object_t _defaultHead; /* *< the head of the linked list of unfinalized objects not loaded by the system class loader */
44
44
j9object_t _defaultTail; /* *< the tail of the linked list of unfinalized objects not loaded by the system class loader */
45
- UDATA _defaultObjectCount; /* *< the number of buffered objects not loaded by the system class loader */
45
+ uintptr_t _defaultObjectCount; /* *< the number of buffered objects not loaded by the system class loader */
46
46
MM_GCExtensions * const _extensions; /* *< a cached pointer to the extensions structure */
47
- J9ClassLoader* const _systemClassLoader;
47
+ J9ClassLoader * const _systemClassLoader;
48
48
protected:
49
49
public:
50
50
51
51
private:
52
- void addSystemObject (MM_EnvironmentBase* env, j9object_t object) {
52
+ void addSystemObject (MM_EnvironmentBase * env, j9object_t object) {
53
53
if (NULL == _systemHead) {
54
54
Assert_MM_true (NULL == _systemTail);
55
55
Assert_MM_true (0 == _systemObjectCount);
@@ -66,7 +66,7 @@ class GC_FinalizableObjectBuffer
66
66
}
67
67
}
68
68
69
- void addDefaultObject (MM_EnvironmentBase* env, j9object_t object) {
69
+ void addDefaultObject (MM_EnvironmentBase * env, j9object_t object) {
70
70
if (NULL == _defaultHead) {
71
71
_extensions->accessBarrier ->setFinalizeLink (object, NULL );
72
72
_defaultHead = object;
@@ -85,7 +85,7 @@ class GC_FinalizableObjectBuffer
85
85
* @param env[in] the current thread
86
86
* @param object[in] the object to add
87
87
*/
88
- virtual void add (MM_EnvironmentBase* env, j9object_t object)
88
+ virtual void add (MM_EnvironmentBase * env, j9object_t object)
89
89
{
90
90
if (_systemClassLoader == (J9OBJECT_CLAZZ ((J9VMThread *)env->getOmrVMThread ()->_language_vmthread , object)->classLoader )) {
91
91
addSystemObject (env, object);
@@ -94,7 +94,7 @@ class GC_FinalizableObjectBuffer
94
94
}
95
95
}
96
96
97
- void flush (MM_EnvironmentBase* env)
97
+ void flush (MM_EnvironmentBase * env)
98
98
{
99
99
GC_FinalizeListManager *finalizeListManager = _extensions->finalizeListManager ;
100
100
if (NULL != _systemHead) {
@@ -117,13 +117,13 @@ class GC_FinalizableObjectBuffer
117
117
*/
118
118
GC_FinalizableObjectBuffer (MM_GCExtensions *extensions) :
119
119
_systemHead (NULL )
120
- ,_systemTail(NULL )
121
- ,_systemObjectCount(0 )
122
- ,_defaultHead(NULL )
123
- ,_defaultTail(NULL )
124
- ,_defaultObjectCount(0 )
125
- ,_extensions(extensions)
126
- ,_systemClassLoader(((J9JavaVM *)extensions->getOmrVM ()->_language_vm)->systemClassLoader)
120
+ , _systemTail(NULL )
121
+ , _systemObjectCount(0 )
122
+ , _defaultHead(NULL )
123
+ , _defaultTail(NULL )
124
+ , _defaultObjectCount(0 )
125
+ , _extensions(extensions)
126
+ , _systemClassLoader(((J9JavaVM *)extensions->getOmrVM ()->_language_vm)->systemClassLoader)
127
127
{}
128
128
};
129
129
#endif /* FINALIZABLEOBJECTBUFFER_HPP_ */
0 commit comments