You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by GitBox <gi...@apache.org> on 2021/07/18 23:59:01 UTC

[GitHub] [trafficserver] masaori335 commented on a change in pull request #8074: Make the InkAPI mHandleAllocator be a Proxy Allocator

masaori335 commented on a change in pull request #8074:
URL: https://github.com/apache/trafficserver/pull/8074#discussion_r671918035



##########
File path: src/traffic_server/InkAPI.cc
##########
@@ -773,7 +773,7 @@ isWriteable(TSMBuffer bufp)
 static MIMEFieldSDKHandle *
 sdk_alloc_field_handle(TSMBuffer /* bufp ATS_UNUSED */, MIMEHdrImpl *mh)
 {
-  MIMEFieldSDKHandle *handle = mHandleAllocator.alloc();
+  MIMEFieldSDKHandle *handle = THREAD_ALLOC(mHandleAllocator, this_thread());

Review comment:
       Do we need to get rid of `ClassAllocator<MIMEFieldSDKHandle> mHandleAllocator`?
   https://github.com/apache/trafficserver/blob/c4b7eaac6ec3e98702b205895f914f2dcec76369/src/traffic_server/InkAPI.cc#L395




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org