mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
8025856: Fix typos in the GC code
Fix about 440 typos in comments in the VM code Reviewed-by: mgerdin, tschatzl, coleenp, kmo, jcoomes
This commit is contained in:
parent
4c7c3f0613
commit
81ba2e32c0
150 changed files with 524 additions and 545 deletions
|
@ -56,7 +56,7 @@
|
|||
|
||||
// Here's the Space hierarchy:
|
||||
//
|
||||
// - Space -- an asbtract base class describing a heap area
|
||||
// - Space -- an abstract base class describing a heap area
|
||||
// - CompactibleSpace -- a space supporting compaction
|
||||
// - CompactibleFreeListSpace -- (used for CMS generation)
|
||||
// - ContiguousSpace -- a compactible space in which all free space
|
||||
|
@ -159,7 +159,7 @@ class Space: public CHeapObj<mtGC> {
|
|||
// (that is, if the space is contiguous), then this region must contain only
|
||||
// such objects: the memregion will be from the bottom of the region to the
|
||||
// saved mark. Otherwise, the "obj_allocated_since_save_marks" method of
|
||||
// the space must distiguish between objects in the region allocated before
|
||||
// the space must distinguish between objects in the region allocated before
|
||||
// and after the call to save marks.
|
||||
virtual MemRegion used_region_at_save_marks() const {
|
||||
return MemRegion(bottom(), saved_mark_word());
|
||||
|
@ -190,7 +190,7 @@ class Space: public CHeapObj<mtGC> {
|
|||
|
||||
// Returns true iff the given the space contains the
|
||||
// given address as part of an allocated object. For
|
||||
// ceratin kinds of spaces, this might be a potentially
|
||||
// certain kinds of spaces, this might be a potentially
|
||||
// expensive operation. To prevent performance problems
|
||||
// on account of its inadvertent use in product jvm's,
|
||||
// we restrict its use to assertion checks only.
|
||||
|
@ -244,13 +244,13 @@ class Space: public CHeapObj<mtGC> {
|
|||
// Return an address indicating the extent of the iteration in the
|
||||
// event that the iteration had to return because of finding an
|
||||
// uninitialized object in the space, or if the closure "cl"
|
||||
// signalled early termination.
|
||||
// signaled early termination.
|
||||
virtual HeapWord* object_iterate_careful(ObjectClosureCareful* cl);
|
||||
virtual HeapWord* object_iterate_careful_m(MemRegion mr,
|
||||
ObjectClosureCareful* cl);
|
||||
|
||||
// Create and return a new dirty card to oop closure. Can be
|
||||
// overriden to return the appropriate type of closure
|
||||
// overridden to return the appropriate type of closure
|
||||
// depending on the type of space in which the closure will
|
||||
// operate. ResourceArea allocated.
|
||||
virtual DirtyCardToOopClosure* new_dcto_cl(ExtendedOopClosure* cl,
|
||||
|
@ -474,13 +474,13 @@ public:
|
|||
// be one, since compaction must succeed -- we go to the first space of
|
||||
// the previous generation if necessary, updating "cp"), reset compact_top
|
||||
// and then forward. In either case, returns the new value of "compact_top".
|
||||
// If the forwarding crosses "cp->threshold", invokes the "cross_threhold"
|
||||
// If the forwarding crosses "cp->threshold", invokes the "cross_threshold"
|
||||
// function of the then-current compaction space, and updates "cp->threshold
|
||||
// accordingly".
|
||||
virtual HeapWord* forward(oop q, size_t size, CompactPoint* cp,
|
||||
HeapWord* compact_top);
|
||||
|
||||
// Return a size with adjusments as required of the space.
|
||||
// Return a size with adjustments as required of the space.
|
||||
virtual size_t adjust_object_size_v(size_t size) const { return size; }
|
||||
|
||||
protected:
|
||||
|
@ -500,7 +500,7 @@ protected:
|
|||
|
||||
// Requires "allowed_deadspace_words > 0", that "q" is the start of a
|
||||
// free block of the given "word_len", and that "q", were it an object,
|
||||
// would not move if forwared. If the size allows, fill the free
|
||||
// would not move if forwarded. If the size allows, fill the free
|
||||
// block with an object, to prevent excessive compaction. Returns "true"
|
||||
// iff the free region was made deadspace, and modifies
|
||||
// "allowed_deadspace_words" to reflect the number of available deadspace
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue