Skip to content

Commit b9e3aad

Browse files
wksmmtkgc-bot
andauthored
Rename edge to slot (#274)
Parent PR: mmtk/mmtk-core#1134 --------- Co-authored-by: mmtkgc-bot <[email protected]>
1 parent f89eafd commit b9e3aad

13 files changed

+211
-204
lines changed

mmtk/Cargo.lock

+52-45
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mmtk/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ memoffset = "0.9.0"
3232
# - change branch
3333
# - change repo name
3434
# But other changes including adding/removing whitespaces in commented lines may break the CI.
35-
mmtk = { git = "https://github.com/mmtk/mmtk-core.git", rev = "dccce9063b57dde96d2e97670297aed4dc32e6e1" }
35+
mmtk = { git = "https://github.com/mmtk/mmtk-core.git", rev = "56b2521d2b99848ee0613a0a5288fe6d81b754ba" }
3636
# Uncomment the following to build locally
3737
# mmtk = { path = "../repos/mmtk-core" }
3838

mmtk/src/abi.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use super::UPCALLS;
2-
use crate::OpenJDKEdge;
2+
use crate::OpenJDKSlot;
33
use atomic::Atomic;
44
use atomic::Ordering;
55
use mmtk::util::constants::*;
@@ -278,10 +278,10 @@ impl InstanceRefKlass {
278278
}
279279
*DISCOVERED_OFFSET
280280
}
281-
pub fn referent_address<const COMPRESSED: bool>(oop: Oop) -> OpenJDKEdge<COMPRESSED> {
281+
pub fn referent_address<const COMPRESSED: bool>(oop: Oop) -> OpenJDKSlot<COMPRESSED> {
282282
oop.get_field_address(Self::referent_offset()).into()
283283
}
284-
pub fn discovered_address<const COMPRESSED: bool>(oop: Oop) -> OpenJDKEdge<COMPRESSED> {
284+
pub fn discovered_address<const COMPRESSED: bool>(oop: Oop) -> OpenJDKSlot<COMPRESSED> {
285285
oop.get_field_address(Self::discovered_offset()).into()
286286
}
287287
}
@@ -461,10 +461,10 @@ impl ArrayOopDesc {
461461
pub unsafe fn slice<const COMPRESSED: bool>(
462462
&self,
463463
ty: BasicType,
464-
) -> crate::OpenJDKEdgeRange<COMPRESSED> {
464+
) -> crate::OpenJDKSlotRange<COMPRESSED> {
465465
let base = self.base::<COMPRESSED>(ty);
466466
let start = base;
467-
let lshift = OpenJDKEdge::<COMPRESSED>::LOG_BYTES_IN_EDGE;
467+
let lshift = OpenJDKSlot::<COMPRESSED>::LOG_BYTES_IN_SLOT;
468468
let end = base + ((self.length::<COMPRESSED>() as usize) << lshift);
469469
(start..end).into()
470470
}

0 commit comments

Comments
 (0)