Skip to content

Lower C++ constructors and destructors to placement new in inline_cpp! - #1725

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_961110735
Open

Lower C++ constructors and destructors to placement new in inline_cpp!#1725
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_961110735

Conversation

@copybara-service

Copy link
Copy Markdown

Lower C++ constructors and destructors to placement new in inline_cpp!

Constructors and destructors in migrated crates are lowered into placement new expressions (::new (static_cast<void*>(__this)) Type(...)) and explicit destructor calls (__this->~Type()) inside inline_cpp! blocks, avoiding separate C-ABI thunk emissions.

@copybara-service
copybara-service Bot force-pushed the test_961110735 branch 2 times, most recently from ec10ab5 to 6ddf438 Compare August 10, 2026 16:56
Constructors and destructors in migrated crates are lowered into placement new expressions (`::new (static_cast<void*>(__this)) Type(...)`) and explicit destructor calls (`__this->~Type()`) inside `inline_cpp!` blocks, avoiding separate C-ABI thunk emissions.

PiperOrigin-RevId: 961110735
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.

1 participant