Mercurial > hg > graal-jvmci-8
comparison src/share/vm/memory/referenceProcessor.cpp @ 10327:001ec9515f84
8014277: Remove ObjectClosure as base class for BoolObjectClosure
Reviewed-by: brutisso, tschatzl
author | ehelin |
---|---|
date | Fri, 17 May 2013 11:57:05 +0200 |
parents | aed758eda82a |
children | f2110083203d |
comparison
equal
deleted
inserted
replaced
10292:acac2b03a07f | 10327:001ec9515f84 |
---|---|
250 // Calculate the number of jni handles. | 250 // Calculate the number of jni handles. |
251 uint ReferenceProcessor::count_jni_refs() { | 251 uint ReferenceProcessor::count_jni_refs() { |
252 class AlwaysAliveClosure: public BoolObjectClosure { | 252 class AlwaysAliveClosure: public BoolObjectClosure { |
253 public: | 253 public: |
254 virtual bool do_object_b(oop obj) { return true; } | 254 virtual bool do_object_b(oop obj) { return true; } |
255 virtual void do_object(oop obj) { assert(false, "Don't call"); } | |
256 }; | 255 }; |
257 | 256 |
258 class CountHandleClosure: public OopClosure { | 257 class CountHandleClosure: public OopClosure { |
259 private: | 258 private: |
260 int _count; | 259 int _count; |