mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8302325: Wrong comment in java.base/share/native/libjimage/imageFile.hpp
Reviewed-by: alanb, jlaskey
This commit is contained in:
parent
33bec20710
commit
11194e8b82
3 changed files with 10 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2015, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2015, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
|
@ -203,8 +203,8 @@ public:
|
||||||
// 'length' less 1 (lower 3 bits of header) of bytes that follow containing the
|
// 'length' less 1 (lower 3 bits of header) of bytes that follow containing the
|
||||||
// attribute value. Attribute values present as most significant byte first.
|
// attribute value. Attribute values present as most significant byte first.
|
||||||
//
|
//
|
||||||
// Ex. Container offset (ATTRIBUTE_OFFSET) 0x33562 would be represented as 0x22
|
// Ex. Container offset (ATTRIBUTE_OFFSET) 0x33562 would be represented as 0x2A
|
||||||
// (kind = 4, length = 3), 0x03, 0x35, 0x62.
|
// (kind = 5, length = 3), 0x03, 0x35, 0x62.
|
||||||
//
|
//
|
||||||
// An attribute stream is terminated with a header kind of ATTRIBUTE_END (header
|
// An attribute stream is terminated with a header kind of ATTRIBUTE_END (header
|
||||||
// byte of zero.)
|
// byte of zero.)
|
||||||
|
@ -214,10 +214,10 @@ public:
|
||||||
// direct indexing. Unspecified values default to zero.
|
// direct indexing. Unspecified values default to zero.
|
||||||
//
|
//
|
||||||
// Notes:
|
// Notes:
|
||||||
// - Even though ATTRIBUTE_END is used to mark the end of the attribute stream,
|
// - Even though ATTRIBUTE_END (which might be encoded with a zero byte) is used to
|
||||||
// streams will contain zero byte values to represent lesser significant bits.
|
// mark the end of the attribute stream, streams will contain zero byte values
|
||||||
// Thus, detecting a zero byte is not sufficient to detect the end of an attribute
|
// in the non-header portion of the attribute data. Thus, detecting a zero byte
|
||||||
// stream.
|
// is not sufficient to detect the end of an attribute stream.
|
||||||
// - ATTRIBUTE_OFFSET represents the number of bytes from the beginning of the region
|
// - ATTRIBUTE_OFFSET represents the number of bytes from the beginning of the region
|
||||||
// storing the resources. Thus, in an image this represents the number of bytes
|
// storing the resources. Thus, in an image this represents the number of bytes
|
||||||
// after the index.
|
// after the index.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2014, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -246,7 +246,7 @@ public class PerfectHashBuilder<E> {
|
||||||
if (bucket.getSize() != 1) {
|
if (bucket.getSize() != 1) {
|
||||||
// Attempt to pack entries until no collisions occur.
|
// Attempt to pack entries until no collisions occur.
|
||||||
if (!collidedEntries(bucket, count)) {
|
if (!collidedEntries(bucket, count)) {
|
||||||
// Failed to pack. Meed to grow table.
|
// Failed to pack. Need to grow table.
|
||||||
redo = true;
|
redo = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue