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

P2186 Removing Garbage Collection Support #898

Closed
wg21bot opened this issue Aug 1, 2020 · 9 comments
Closed

P2186 Removing Garbage Collection Support #898

wg21bot opened this issue Aug 1, 2020 · 9 comments

Comments

@wg21bot
Copy link
Collaborator

@wg21bot wg21bot commented Aug 1, 2020

P2186R0 Removing Garbage Collection Support (JF Bastien, Alisdair Meredith)

@wg21bot wg21bot added this to the 2020-telecon milestone Aug 1, 2020
@jfbastien
Copy link
Collaborator

@jfbastien jfbastien commented Aug 3, 2020

EWG reviewed this in a telecon on July 30th and took the following non-binding poll:

Remove (not deprecate) garbage collection support in C++23.
SF F N A SA
3 9 4 0 1

@jfbastien

This comment has been hidden.

@ben-craig
Copy link
Collaborator

@ben-craig ben-craig commented Dec 17, 2020

P2186R0: Removing Garbage Collection Support

2020-12-14 Library Evolution Telecon Minutes

Chair: Ben Craig

Champion: JF Bastien

Minute Taker: Inbal Levi

Start: 2020-12-14 09:35 Pacific Standard

POLL: Remove (not deprecate) pointer safety in C++23, after moving names to zombie names.

Strongly Favor Weakly Favor Neutral Weakly Against Strongly Against
10 4 3 0 0

Attendance: 24

# of Authors: 1

Author Position: SF

Outcome: EWG may continue with this paper.

End: 09:45

SUMMARY:
The main discussion revolved around seeing if there were any implementations that implemented this, and discussing immediate removal vs. deprecation. LEWG was fine with immediate removal.

OUTCOME:
EWG may continue with this paper. Please add the removed names to [zombie.names]

@wg21bot
Copy link
Collaborator Author

@wg21bot wg21bot commented Dec 27, 2020

P2186R1 Removing Garbage Collection Support (JF Bastien, Alisdair Meredith)

@wg21bot wg21bot removed this from the 2020-telecon milestone Dec 27, 2020
@wg21bot wg21bot added this to the 2021-telecon milestone Dec 27, 2020
@jensmaurer jensmaurer added this to Ready for review in CWG Feb 2, 2021
@jfbastien
Copy link
Collaborator

@jfbastien jfbastien commented Mar 9, 2021

EWG February 2021 polls:

Poll: Forward P2186R1 "Removing Garbage Collection Support" to Core.

SF F N A SA
12 12 4 1 0

Poll outcome: consensus.

Salient comments:

  • (Against) It does not seem to provide much harm, even if not used… And since the basic need seems genuine, I’d prefer to keep the mechanism until it is properly handled, than removing it and having to reintroduce something similar later.
    Clearly, no need to have unused utilities.
  • To the best of my knowledge, this is unused and not implemented in implementations. The specification cost of keeping it is not zero.
  • Given that 10 years after being standardized, this is not provided in any major implementation, it’s IMHO save to assume that "nobody" needs this/can use this due to the issues outlined in the paper.
  • Implementations of garbage collection exist, yet do not rely on the "garbage collection support" in the Standard. Furthermore, the paper argues convincingly that the Standard’s "support" for garbage collection does not support common use cases, like placement new in local arrays.
  • Keeping stuff in the standard that’s not supported and is lacking guidance for proper implementation makes little sense. Removing it might free space for a better, more useful specification that’s not restricted to cmpatibility.

@jensmaurer jensmaurer moved this from Ready for review to Approved for plenary vote in CWG Mar 22, 2021
@jensmaurer
Copy link
Member

@jensmaurer jensmaurer commented Mar 22, 2021

CWG 2021-03-22: Approved.

@JeffGarland
Copy link
Collaborator

@JeffGarland JeffGarland commented Apr 9, 2021

Planned for LWG review 2021-04-16

@JeffGarland
Copy link
Collaborator

@JeffGarland JeffGarland commented Apr 16, 2021

LWG adopted

https://wiki.edg.com/bin/view/Wg21telecons2021/P2186-20210416

Adopt P2816R2 Remove Garbage Collection Support for C++23
F N A
7 2 0

1 neutral vote was regarding discussion of object lifetime -- which was subsequently clarified to satisfaction after the vote.

@wg21bot
Copy link
Collaborator Author

@wg21bot wg21bot commented Apr 25, 2021

P2186R2 Removing Garbage Collection Support (JF Bastien, Alisdair Meredith)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Linked pull requests

Successfully merging a pull request may close this issue.

7 participants