Skip to content

Precise non-backward change done on weak-pointers#515

Closed
bobot wants to merge 2 commits intoocaml:4.03from
bobot:ephemeron_c_api
Closed

Precise non-backward change done on weak-pointers#515
bobot wants to merge 2 commits intoocaml:4.03from
bobot:ephemeron_c_api

Conversation

@bobot
Copy link
Contributor

@bobot bobot commented Mar 17, 2016

Fix #7173. There is a discussion in mantis if it should go to 4.03. I'm not convinced, except for the two first commits. I can create a separate GPR for them.

Changes Outdated
Runtime system:
- PR#7173 GPR#515: Add a public C API for weak arrays and ephemerons.
(François Bobot and Jacques-Henri Jourdan)
* GPR#22: The undocumented layout of weak arrays have been changed.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/have/has

@bobot bobot force-pushed the ephemeron_c_api branch from ddd0cc5 to 491b493 Compare March 17, 2016 10:40

CAMLextern mlsize_t caml_ephemeron_key_length(value eph);
/** return the number of key in the ephemeron. The valid key offset goes
from [0] to the predecessor of the returned value. */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments like this usually start with capital letters, no?
Maybe you should add "inclusive" after "value" (if that's what you mean).

@bobot bobot force-pushed the ephemeron_c_api branch from 491b493 to 4f156a5 Compare March 17, 2016 10:43
caml_ephemeron_unset_key, this function does not prevent the
incremental GC from erasing the value in its current cycle. The
values [eph1] and [eph2] must be ephemerons and the offset between
[off1] and [off1+len] and between [off2] and [off2+offset] must be
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/offset/offsets (on line 75)

@bobot bobot force-pushed the ephemeron_c_api branch 3 times, most recently from 6c467f6 to 4bf1a58 Compare March 17, 2016 12:51
@bobot
Copy link
Contributor Author

bobot commented Mar 17, 2016

Except for the name used for the exceptions, all the current comments have been taken into account.

@bobot bobot force-pushed the ephemeron_c_api branch from 4bf1a58 to d66661a Compare March 17, 2016 13:24
Changes Outdated

Runtime system:
- PR#7173 GPR#515: Add a public C API for weak arrays and ephemerons.
(François Bobot and Jacques-Henri Jourdan, review by Mark Shinwell)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect you broke the careful sorting of the issue list for this and GPR#22 just to spite me :-)

@bobot bobot force-pushed the ephemeron_c_api branch from d66661a to c1fbbe1 Compare March 24, 2016 21:53
@damiendoligez
Copy link
Member

@bobot can you make a new GPR for the bug fix? It's too late to add so much code in 4.03.

@damiendoligez damiendoligez added this to the 4.04 milestone Mar 31, 2016
@bobot
Copy link
Contributor Author

bobot commented Mar 31, 2016

@damiendoligez Ok. Could I keep only the bug fix in this GPR and move all the new code to another GPR? Just because this one target 4.03.

@bobot bobot force-pushed the ephemeron_c_api branch from c1fbbe1 to a64fd03 Compare April 1, 2016 10:31
@bobot bobot force-pushed the ephemeron_c_api branch from a64fd03 to 9a578fd Compare April 1, 2016 10:35
@bobot bobot changed the title Add a C api for ephemerons and weak arrays Precise non-backward change done on weak-pointers Apr 1, 2016
@bobot
Copy link
Contributor Author

bobot commented Apr 1, 2016

@damiendoligez this merge request now contains only the prefix of the previous commit.

@bobot bobot mentioned this pull request Apr 12, 2016
@bobot
Copy link
Contributor Author

bobot commented Apr 18, 2016

@damiendoligez could you please reschedule this GPR for 4.03 which now contains only doc related modifications or a bug fix.

@damiendoligez damiendoligez modified the milestones: 4.03.1, 4.04 Apr 29, 2016
@bobot bobot mentioned this pull request Jul 7, 2016
@bobot
Copy link
Contributor Author

bobot commented Jul 7, 2016

Since this pull request targeted 4.03, I opened a new one #676 that targets trunk and so I'm going to close this one.

@bobot bobot closed this Jul 7, 2016
EduardoRFS pushed a commit to esy-ocaml/ocaml that referenced this pull request May 17, 2021
Add memprof stubs to build and stdlib
mshinwell added a commit to mshinwell/ocaml that referenced this pull request Jun 30, 2021
EmileTrotignon pushed a commit to EmileTrotignon/ocaml that referenced this pull request Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants