-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Remove unused 3rd parameter for AZ_CLASS_ALLOCATOR. #14530
Remove unused 3rd parameter for AZ_CLASS_ALLOCATOR. #14530
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much for this!
Won't this break all 3rd party contributor / partner gems? We try to avoid doing this. (Is there a way to make the old macro still work?) |
@Jackie9527 Can you post the script or command you used to perform the replacement? |
I don't see a change to the macro definition itself in Memory.h, so I think this is just changing all the engine uses of the macro, not the macro itself? |
I hope all the folks shipping this did the same check as I did, but I checked out that repo, added an old style allocator (with the ,0) to it, ensured it still worked. Then I also did a
to ensure that there were no other changes except for changes to class allocator lines. Confirmed. Shipit. |
Very Unix-y! I like it |
I used VSCode to search, check and replace. |
Thanks for posting the command, I verified it the search only catches $ find . \( -name "*.cpp" -o -name "*.h" -o -name "*.hxx" \) -exec grep -F "Allocator, 0)" {} \; > allocator.txt
$ awk '{ $1=$1; print }' < allocator.txt | sort > sorted.txt It takes a while to run, but it outputs a sorted file of lines. The output only contains with lines related to Here is a file that contains the list records found by searching for the string |
e2526f0
to
f9812f5
Compare
Hi there, automated review failed with some error, see report here: You may also need to pull latest to resolve the conflicts that have arisen since last week. |
f9812f5
to
a46c9cc
Compare
Signed-off-by: Jackie9527 <80555200+Jackie9527@users.noreply.github.com>
a46c9cc
to
80f264c
Compare
done, the branch has been rebased using the latest commit [4f5259b]. |
Another build is in progress at https://jenkins.build.o3de.org/job/O3DE/job/PR-14530/ |
Good news is that most of the testcases are passed, only one is failed. |
The failure that occurred in the AzCore.Tests was in the |
Signed-off-by: Jackie9527 80555200+Jackie9527@users.noreply.github.com
What does this PR do?
The 3rd parameter of
AZ_CLASS_ALLOCATOR
is useless, which could be misleading.The old style as follows:
Here is recommended:
How was this PR tested?
Verified by running UT cases, such as:





