Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug? custom blocks in the minor heap #7949

Closed
vicuna opened this issue Nov 13, 2002 · 2 comments
Closed

bug? custom blocks in the minor heap #7949

vicuna opened this issue Nov 13, 2002 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Nov 13, 2002

Original bug ID: 1473
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: chris quinn
Version: 3.06
OS:
Submission from: 212.42.169.63 (212.42.169.63)

it seems custom finalisation only happens during
a sweep of the major heap.
if this is so then surely alloc_custom must not
allocate from the minor heap?

i have observed custom blocks in the minor heap not
being finalised when they go 'out of scope' before
the next minor collection.

  • chris
@vicuna
Copy link
Author

vicuna commented Nov 19, 2002

Comment author: administrator

it seems custom finalisation only happens during
a sweep of the major heap.

Correct.

if this is so then surely alloc_custom must not
allocate from the minor heap?

If you look at the source of alloc_custom, you'll see that allocation
is performed in the minor heap only if there is no finalization
function in the custom_operations struct.

i have observed custom blocks in the minor heap not
being finalised when they go 'out of scope' before
the next minor collection.

There should never be a custom block with non-NULL finalizer in the
minor heap. If you've observed this, please give us more details so
that we can track this bug down.

Cheers,

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Nov 24, 2002

Comment author: administrator

Can't reproduce.

@vicuna vicuna closed this as completed Nov 24, 2002
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant