Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions lib/Common/Memory/Allocator.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Copyright (c) ChakraCore Project Contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
#pragma once
Expand Down Expand Up @@ -448,6 +449,8 @@ void AssertValue(void * mem, T value, uint byteCount)
#define NO_EXPORT(x) x
#endif

#if defined(_MSC_VER) && !defined(__clang__)

// For the debugger extension, we don't need the placement news
#ifndef __PLACEMENT_NEW_INLINE
#define __PLACEMENT_NEW_INLINE
Expand All @@ -473,6 +476,14 @@ void * previousAllocation // Previously allocated memory

#endif

#else

// Use std inline placement new instead of custom
// See PR #7009
#include <new>

#endif

//----------------------------------------
// throwing operator new overrides
//----------------------------------------
Expand Down
Loading