Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(267)

Issue 614373007: Oilpan: Remove adoptRefCountedGarbageCollected (Closed)

Created:
6 years, 2 months ago by haraken
Modified:
6 years, 2 months ago
CC:
blink-reviews, tzik, eric.carlson_apple.com, dgrogan, jsbell+serviceworker_chromium.org, yhirano+watch_chromium.org, Mads Ager (chromium), philipj_slow, nhiroki, Raymond Toy, feature-media-reviews_chromium.org, tommyw+watchlist_chromium.org, jsbell+idb_chromium.org, michaeln, tyoshino+watch_chromium.org, serviceworker-reviews, mkwst+moarreviews_chromium.org, falken, kinuko+serviceworker, cmumford, horo+watch_chromium.org, kouhei+heap_chromium.org, kinuko+fileapi
Project:
blink
Visibility:
Public.

Description

Oilpan: Remove adoptRefCountedGarbageCollected adoptRefCountedGarbageCollected is no longer needed. When creating a RefCountedGarbageCollected object, we can just use 'new RefCountedGarbageCollectedObj()'. Even if a GC is triggered between when the object is created and when the object is adopted, there is no issue because our conservative scanning finds the object and traces it. This CL also removes ThreadSafeRefCountedGarbageCollected because it is now unused (WebAudio was the only user of ThreadSafeRefCountedGarbageCollected, but we already shipped Oilpan for WebAudio and removed the need). BUG=340522 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183582

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -185 lines) Patch
M Source/core/fileapi/FileReader.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/encryptedmedia/MediaKeySession.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/filesystem/FileWriter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/filesystem/FileWriterSync.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/indexeddb/IDBDatabase.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/indexeddb/IDBOpenDBRequest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/indexeddb/IDBRequest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/indexeddb/IDBTransaction.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/mediasource/MediaSource.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/mediasource/SourceBuffer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/mediasource/SourceBufferList.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/mediastream/MediaStream.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M Source/modules/mediastream/MediaStreamTrack.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/mediastream/RTCDTMFSender.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/mediastream/RTCDataChannel.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/modules/mediastream/RTCPeerConnection.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/netinfo/NetworkInformation.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/notifications/Notification.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/screen_orientation/ScreenOrientation.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerRegistration.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/speech/SpeechRecognition.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/speech/SpeechSynthesis.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/speech/SpeechSynthesisUtterance.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webaudio/AnalyserNode.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webaudio/AudioBufferSourceNode.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webaudio/AudioContext.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webaudio/BiquadFilterNode.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webaudio/ChannelMergerNode.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webaudio/ChannelSplitterNode.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webaudio/ConvolverNode.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webaudio/DefaultAudioDestinationNode.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webaudio/DelayNode.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webaudio/DynamicsCompressorNode.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webaudio/GainNode.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webaudio/MediaElementAudioSourceNode.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webaudio/MediaStreamAudioDestinationNode.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webaudio/MediaStreamAudioSourceNode.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webaudio/OfflineAudioContext.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webaudio/OfflineAudioDestinationNode.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webaudio/OscillatorNode.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webaudio/PannerNode.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webaudio/ScriptProcessorNode.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webaudio/WaveShaperNode.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webmidi/MIDIAccess.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webmidi/MIDIInput.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webmidi/MIDIOutput.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/websockets/DOMWebSocket.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/websockets/DOMWebSocketTest.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/modules/websockets/MainThreadWebSocketChannel.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/websockets/NewWebSocketChannelImpl.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/websockets/WorkerThreadableWebSocketChannel.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/heap/Handle.h View 1 2 4 chunks +3 lines, -50 lines 0 comments Download
M Source/platform/heap/Heap.h View 1 2 3 chunks +1 line, -66 lines 0 comments Download
M Source/platform/heap/HeapTest.cpp View 1 2 3 4 8 chunks +12 lines, -12 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
haraken
PTAL
6 years, 2 months ago (2014-10-02 07:48:34 UTC) #2
tkent
lgtm https://codereview.chromium.org/614373007/diff/1/Source/platform/heap/Handle.h File Source/platform/heap/Handle.h (right): https://codereview.chromium.org/614373007/diff/1/Source/platform/heap/Handle.h#newcode1059 Source/platform/heap/Handle.h:1059: template<typename T> RawPtr<T> adoptRefWillBeNoop(T* ptr) RawPtr<T> -> T* ...
6 years, 2 months ago (2014-10-02 07:59:36 UTC) #4
haraken
> https://codereview.chromium.org/614373007/diff/1/Source/platform/heap/Handle.h > File Source/platform/heap/Handle.h (right): > > https://codereview.chromium.org/614373007/diff/1/Source/platform/heap/Handle.h#newcode1059 > Source/platform/heap/Handle.h:1059: template<typename T> RawPtr<T> > ...
6 years, 2 months ago (2014-10-02 09:42:08 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/614373007/20001
6 years, 2 months ago (2014-10-02 09:42:59 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/27420)
6 years, 2 months ago (2014-10-02 10:10:56 UTC) #9
haraken
On 2014/10/02 10:10:56, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 2 months ago (2014-10-12 15:00:15 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/614373007/330001
6 years, 2 months ago (2014-10-12 15:01:25 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_chromium_gn_rel/builds/13352)
6 years, 2 months ago (2014-10-12 15:17:05 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/614373007/460001
6 years, 2 months ago (2014-10-12 16:19:26 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:460001) as 183582
6 years, 2 months ago (2014-10-12 19:19:20 UTC) #17
sof
This leads to a larger amount of assert failures (layout + unit tests) on the ...
6 years, 2 months ago (2014-10-13 06:34:41 UTC) #19
sof
On 2014/10/13 06:34:41, sof wrote: > This leads to a larger amount of assert failures ...
6 years, 2 months ago (2014-10-13 06:49:24 UTC) #20
sof
6 years, 2 months ago (2014-10-13 07:22:19 UTC) #21
Message was sent while issue was closed.
On 2014/10/13 06:49:24, sof wrote:
> On 2014/10/13 06:34:41, sof wrote:
> > This leads to a larger amount of assert failures (layout + unit tests) on
the
> > Oilpan bots,
> > 
> > 
> >
>
https://storage.googleapis.com/chromium-layout-test-archives/WebKit_Linux_Oil...
> > 
> > i.e., the SVG properties have a base object (SVGPropertyBase) which is
> > RefCountedGarbageCollected, but the derived objects are still create()d
using
> > adoptRef() and handled via (Pass)RefPtr.
> > 
> > The use of an initial m_refCount = 0 for RefCountedGarbageCollected here
> creates
> > an imbalance.
> > 
> > IOW, more work is needed here. I suggest we revert for now.
> 
> Looks like there is a relatively tidy way to address it; let's try that first.

https://codereview.chromium.org/650033002/

Powered by Google App Engine
This is Rietveld 408576698