Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Commit

Permalink
Remove outdated comment (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraaga authored Nov 28, 2023
1 parent c808055 commit 71b9837
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions gc.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,6 @@ func alloc(size uintptr, layoutPtr unsafe.Pointer) unsafe.Pointer {
var buf unsafe.Pointer

layout := uintptr(layoutPtr)
// We only handle the case where the layout is embedded because it is cheap to
// transform into a descriptor for bdwgc. Larger layouts may need to allocate,
// and we would want to cache the descriptor, but we cannot use a Go cache in this
// function which is runtime.alloc. If we wanted to pass their information to bdwgc
// efficiently, we would want LLVM to generate the descriptors in its format.
// Because TinyGo uses a byte array for bitmap and bdwgc uses a word array, there are
// likely endian issues in trying to use it directly.
if layout&1 != 0 {
// Layout is stored directly in the integer value.
// Determine format of bitfields in the integer.
Expand Down

0 comments on commit 71b9837

Please sign in to comment.