This is an archive of the discontinued LLVM Phabricator instance.

Fixing the memory leak using split() instead of strtok
ClosedPublic

Authored by hchilama on Aug 18 2023, 12:28 AM.

Diff Detail

Event Timeline

hchilama created this revision.Aug 18 2023, 12:28 AM
hchilama created this object with edit policy "Administrators".
Herald added a project: Restricted Project. · View Herald TranscriptAug 18 2023, 12:28 AM
hchilama requested review of this revision.Aug 18 2023, 12:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 18 2023, 12:28 AM
hchilama accepted this revision.Aug 18 2023, 12:35 AM

Using the split() instead of strtok to improve the performance

This revision is now accepted and ready to land.Aug 18 2023, 12:35 AM
hchilama edited reviewers, added: mdtoguchi; removed: hchilama.Aug 18 2023, 12:37 AM
This revision now requires review to proceed.Aug 18 2023, 12:37 AM

It seems like clang-format might be failing with this patch which should be fixed first.

And I think I cannot actually accept this patch because I see the following hchilama created this object with edit policy "Administrators".

hchilama changed the edit policy from "Administrators" to "All Users".Aug 21 2023, 8:19 AM

Hi @abhina.sreeskantharajan I have verified the fix aganist the clang-format, seems fine. (FYI: I saw clean build on Friday)

I have modified this object with the edit policy "All Users"

Please let me know if I need to do anything else here?

Hi @abhina.sreeskantharajan I have verified the fix aganist the clang-format, seems fine. (FYI: I saw clean build on Friday)

I have modified this object with the edit policy "All Users"

Please let me know if I need to do anything else here?

I think the format should be good then, the CI might be failing due to another commit. LGTM, thanks!

This revision is now accepted and ready to land.Aug 21 2023, 10:15 AM

Hi @abhina.sreeskantharajan can I please know the next process on how to land this revision to opensource?

Hi @abhina.sreeskantharajan can I please know the next process on how to land this revision to opensource?

Usually you need to have someone with commit access commit the changes for you for your first couple of patches and then you can request commit access yourself. This is outlined here https://llvm.org/docs/DeveloperPolicy.html#obtaining-commit-access
I'd be happy to commit this patch for you if needed :)

Hi @abhina.sreeskantharajan , Thanks for letting me know the process and please help me in commiting this patch.

Hi @abhina.sreeskantharajan , Thanks for letting me know the process and please help me in commiting this patch.

I'd like to put your name and email as the commit's author. What email should I use? git commit --amend --author="Harini Chilamantula <email@address.com>"

Please use my Intel email Chilamantula, Harini <harini.chilamantula@intel.com> .

This revision was landed with ongoing or failed builds.Aug 22 2023, 12:26 PM
This revision was automatically updated to reflect the committed changes.