comparison src/share/vm/runtime/unhandledOops.hpp @ 14309:63a4eb8bcd23

8025856: Fix typos in the GC code Summary: Fix about 440 typos in comments in the VM code Reviewed-by: mgerdin, tschatzl, coleenp, kmo, jcoomes
author jwilhelm
date Thu, 23 Jan 2014 14:47:23 +0100
parents de6a9e811145
children 4ca6dc0799b6
comparison
equal deleted inserted replaced
14308:870aedf4ba4f 14309:63a4eb8bcd23
32 // The design is that when an oop is declared on the stack as a local 32 // The design is that when an oop is declared on the stack as a local
33 // variable, the oop is actually a C++ struct with constructor and 33 // variable, the oop is actually a C++ struct with constructor and
34 // destructor. The constructor adds the oop address on a list 34 // destructor. The constructor adds the oop address on a list
35 // off each thread and the destructor removes the oop. At a potential 35 // off each thread and the destructor removes the oop. At a potential
36 // safepoint, the stack addresses of the local variable oops are trashed 36 // safepoint, the stack addresses of the local variable oops are trashed
37 // with a recognizeable value. If the local variable is used again, it 37 // with a recognizable value. If the local variable is used again, it
38 // will segfault, indicating an unsafe use of that oop. 38 // will segfault, indicating an unsafe use of that oop.
39 // eg: 39 // eg:
40 // oop o; //register &o on list 40 // oop o; //register &o on list
41 // funct(); // if potential safepoint - causes clear_naked_oops() 41 // funct(); // if potential safepoint - causes clear_naked_oops()
42 // // which trashes o above. 42 // // which trashes o above.