[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: basic questions on MPS
From: |
vibhavp |
Subject: |
Re: basic questions on MPS |
Date: |
Fri, 26 Apr 2024 20:37:27 +0530 |
User-agent: |
Evolution 3.52.1 |
On Fri, 2024-04-26 at 08:36 +0200, Helmut Eller wrote:
>
> Thank you for the explanation. It's interesting that they still have
> acceptable performance with so many layers of abstraction. And I
> guess
> it's nice that everything is strongly typed instead of a bunch macros
> in
> a header file.
>
>
Indeed, which is why the MMTk documentation recommends that final
production builds be compiled with LTO enabled. If everything's getting
built using LLVM, then cross-language LTO (Rust <-> C) also gets
utilized, ideally.
> > Perhaps not the same thing, but a similar idea is LLVM's support
> > for
> > GC (https://llvm.org/docs/GarbageCollection.html), as LLVM IR code
> > generated by a compiler in such a case uses special instrinsics for
> > fiddling with pointer metadata, declaring write and load barriers,
> > etc, with the basic idea being that LLVM knows everything about
> > managed objects in the language runtime. You can then write a
> > garbage
> > collector as an LLVM plugin, which theoretically can be loaded at
> > runtime.
>
> I think this is a rather theoretical feature. In practice, LLVM has
> the
> same problem as GCC: they are designed for C/C++ and tracking
> pointers,
> as needed for a precise GC, is just not part of the design.
Pointer tracking in LLVM is still WIP from what I understand, but the
documentation for statepoint tracking intrinsics
(https://llvm.org/docs/Statepoints.html) does claim that "these
mechanisms are well proven with commercial java implementation with a
fully relocating collector having shipped using them." (I believe
they're referring to Azul).
Vibhav
- Re: Collecting markers with MPS, (continued)
basic questions on MPS, Andrea Corallo, 2024/04/25
- Re: basic questions on MPS, Helmut Eller, 2024/04/25
- Re: basic questions on MPS, Eli Zaretskii, 2024/04/25
- Re: basic questions on MPS, Gerd Möllmann, 2024/04/25
- Re: basic questions on MPS, Vibhav Pant, 2024/04/25
- Re: basic questions on MPS, Helmut Eller, 2024/04/26
- Re: basic questions on MPS, Gerd Möllmann, 2024/04/26
- Re: basic questions on MPS,
vibhavp <=
- Re: basic questions on MPS, Gerd Möllmann, 2024/04/26
Re: basic questions on MPS, Richard Stallman, 2024/04/26
Re: basic questions on MPS, Helmut Eller, 2024/04/27
Re: basic questions on MPS, Richard Stallman, 2024/04/28
Re: basic questions on MPS, Helmut Eller, 2024/04/29
Re: basic questions on MPS, Richard Stallman, 2024/04/29
Re: basic questions on MPS, Eli Zaretskii, 2024/04/25