mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 06:02:07 +03:00
Profiler: Use NonnullOwnPtr for libraries
This commit is contained in:
parent
eb798d5538
commit
ba9a285d56
Notes:
sideshowbarker
2024-07-18 19:04:25 +09:00
Author: https://github.com/gunnarbeutner 🔰 Commit: https://github.com/SerenityOS/serenity/commit/ba9a285d56e Pull-request: https://github.com/SerenityOS/serenity/pull/6639 Reviewed-by: https://github.com/awesomekling
@ -109,8 +109,6 @@ String LibraryMetadata::Library::symbolicate(FlatPtr ptr, u32* offset) const
|
||||
const LibraryMetadata::Library* LibraryMetadata::library_containing(FlatPtr ptr) const
|
||||
{
|
||||
for (auto& it : m_libraries) {
|
||||
if (!it.value)
|
||||
continue;
|
||||
auto& library = *it.value;
|
||||
if (ptr >= library.base && ptr < (library.base + library.size))
|
||||
return &library;
|
||||
|
@ -35,7 +35,7 @@ public:
|
||||
const Library* library_containing(FlatPtr) const;
|
||||
|
||||
private:
|
||||
mutable HashMap<String, OwnPtr<Library>> m_libraries;
|
||||
mutable HashMap<String, NonnullOwnPtr<Library>> m_libraries;
|
||||
};
|
||||
|
||||
struct Thread {
|
||||
|
Loading…
Reference in New Issue
Block a user