コード例 #1
0
ファイル: gcLocker.cpp プロジェクト: AllenWeb/openjdk-1
No_GC_Verifier::No_GC_Verifier(bool verifygc) {
  _verifygc = verifygc;
  if (_verifygc) {
    CollectedHeap* h = Universe::heap();
    assert(!h->is_gc_active(), "GC active during No_GC_Verifier");
    _old_invocations = h->total_collections();
  }
}
コード例 #2
0
ファイル: gcLocker.cpp プロジェクト: AllenWeb/openjdk-1
Pause_No_GC_Verifier::~Pause_No_GC_Verifier() {
  if (_ngcv->_verifygc) {
    // if we were verifying before, then reenable verification
    CollectedHeap* h = Universe::heap();
    assert(!h->is_gc_active(), "GC active during No_GC_Verifier");
    _ngcv->_old_invocations = h->total_collections();
  }
}
コード例 #3
0
ファイル: gcLocker.cpp プロジェクト: AllenWeb/openjdk-1
No_GC_Verifier::~No_GC_Verifier() {
  if (_verifygc) {
    CollectedHeap* h = Universe::heap();
    assert(!h->is_gc_active(), "GC active during No_GC_Verifier");
    if (_old_invocations != h->total_collections()) {
      fatal("collection in a No_GC_Verifier secured function");
    }
  }
}
コード例 #4
0
ファイル: gcLocker.cpp プロジェクト: AllenWeb/openjdk-1
Pause_No_GC_Verifier::Pause_No_GC_Verifier(No_GC_Verifier * ngcv) {
  _ngcv = ngcv;
  if (_ngcv->_verifygc) {
    // if we were verifying, then make sure that nothing is
    // wrong before we "pause" verification
    CollectedHeap* h = Universe::heap();
    assert(!h->is_gc_active(), "GC active during No_GC_Verifier");
    if (_ngcv->_old_invocations != h->total_collections()) {
      fatal("collection in a No_GC_Verifier secured function");
    }
  }
}
コード例 #5
0
ファイル: isGCActiveMark.hpp プロジェクト: dain/graal
 ~IsGCActiveMark() {
   CollectedHeap* heap = Universe::heap();
   assert(heap->is_gc_active(), "Sanity");
   heap->_is_gc_active = false;
 }
コード例 #6
0
ファイル: isGCActiveMark.hpp プロジェクト: dain/graal
 IsGCActiveMark() {
   CollectedHeap* heap = Universe::heap();
   assert(!heap->is_gc_active(), "Not reentrant");
   heap->_is_gc_active = true;
 }