mirror of
https://github.com/ruby/ruby.git
synced 2026-10-28 16:36:20 +08:00
[ruby/mmtk] Bump mmtk-core
https://github.com/ruby/mmtk/commit/3926721638
This commit is contained in:
1 parent
ef2ad774f6
commit
1eb12836e2
4 files changed
+17
-7
No files matched your search
Generated
+4
-4
@@ -440,8 +440,8 @@ checksum = "6b947ae49db0d222b1dbc6b113ce7248a3fc3a6ca21b696717bfc000ba4484d8"
|
||||
|
||||
[[package]]
|
||||
name = "mmtk"
|
||||
version = "0.32.0"
|
||||
source = "git+https://github.com/mmtk/mmtk-core.git?rev=8f806d56469c1c706fd1f88b757c33620bae85ba#8f806d56469c1c706fd1f88b757c33620bae85ba"
|
||||
version = "0.33.0"
|
||||
source = "git+https://github.com/mmtk/mmtk-core.git?rev=0fc014f8d05db7fcb6f49ebe20ddd43a3fe2abdf#0fc014f8d05db7fcb6f49ebe20ddd43a3fe2abdf"
|
||||
dependencies = [
|
||||
"atomic",
|
||||
"atomic-traits",
|
||||
@@ -475,8 +475,8 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "mmtk-macros"
|
||||
version = "0.32.0"
|
||||
source = "git+https://github.com/mmtk/mmtk-core.git?rev=8f806d56469c1c706fd1f88b757c33620bae85ba#8f806d56469c1c706fd1f88b757c33620bae85ba"
|
||||
version = "0.33.0"
|
||||
source = "git+https://github.com/mmtk/mmtk-core.git?rev=0fc014f8d05db7fcb6f49ebe20ddd43a3fe2abdf#0fc014f8d05db7fcb6f49ebe20ddd43a3fe2abdf"
|
||||
dependencies = [
|
||||
"proc-macro-error",
|
||||
"proc-macro2",
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ features = ["vo_bit", "object_pinning", "sticky_immix_non_moving_nursery"]
|
||||
|
||||
# Uncomment the following lines to use mmtk-core from the official repository.
|
||||
git = "https://github.com/mmtk/mmtk-core.git"
|
||||
rev = "8f806d56469c1c706fd1f88b757c33620bae85ba"
|
||||
rev = "0fc014f8d05db7fcb6f49ebe20ddd43a3fe2abdf"
|
||||
|
||||
# Uncomment the following line to use mmtk-core from a local repository.
|
||||
# path = "../../../mmtk-core"
|
||||
|
||||
@@ -19,6 +19,8 @@ impl VMObjectModel {
|
||||
}
|
||||
|
||||
impl ObjectModel<Ruby> for VMObjectModel {
|
||||
const GLOBAL_FIELD_UNLOG_BIT_SPEC: VMGlobalFieldUnlogBitSpec =
|
||||
VMGlobalFieldUnlogBitSpec::side_first();
|
||||
const GLOBAL_LOG_BIT_SPEC: VMGlobalLogBitSpec = VMGlobalLogBitSpec::side_first();
|
||||
|
||||
// We overwrite the prepended word which were used to hold object sizes.
|
||||
@@ -78,6 +80,14 @@ impl ObjectModel<Ruby> for VMObjectModel {
|
||||
to_obj
|
||||
}
|
||||
|
||||
fn try_copy(
|
||||
from: ObjectReference,
|
||||
semantics: CopySemantics,
|
||||
copy_context: &mut GCWorkerCopyContext<Ruby>,
|
||||
) -> Option<ObjectReference> {
|
||||
Some(Self::copy(from, semantics, copy_context))
|
||||
}
|
||||
|
||||
fn copy_to(_from: ObjectReference, _to: ObjectReference, _region: Address) -> Address {
|
||||
unimplemented!(
|
||||
"This function cannot be called because we do not support MarkCompact for Ruby."
|
||||
|
||||
@@ -25,10 +25,10 @@ impl Scanning<Ruby> for VMScanning {
|
||||
false
|
||||
}
|
||||
|
||||
fn scan_object<EV: SlotVisitor<RubySlot>>(
|
||||
fn scan_object(
|
||||
_tls: VMWorkerThread,
|
||||
_object: ObjectReference,
|
||||
_slot_visitor: &mut EV,
|
||||
_slot_visitor: &mut impl SlotVisitor<RubySlot>,
|
||||
) {
|
||||
unreachable!("We have not enabled slot enqueuing for any types, yet.");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user