Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-03-25 | DRTVWR-494: Defend LLInstanceTracker against multi-thread usage. | Nat Goodspeed | |
The previous implementation went to some effort to crash if anyone attempted to create or destroy an LLInstanceTracker subclass instance during traversal. That restriction is manageable within a single thread, but becomes unworkable if it's possible that a given subclass might be used on more than one thread. Remove LLInstanceTracker::instance_iter, beginInstances(), endInstances(), also key_iter, beginKeys() and endKeys(). Instead, introduce key_snapshot() and instance_snapshot(), the only means of iterating over LLInstanceTracker instances. (These are intended to resemble functions, but in fact the current implementation simply presents the classes.) Iterating over a captured snapshot defends against container modifications during traversal. The term 'snapshot' reminds the coder that a new instance created during traversal will not be considered. To defend against instance deletion during traversal, a snapshot stores std::weak_ptrs which it lazily dereferences, skipping on the fly any that have expired. Dereferencing instance_snapshot::iterator gets you a reference rather than a pointer. Because some use cases want to delete all existing instances, add an instance_snapshot::deleteAll() method that extracts the pointer. Those cases used to require explicitly copying instance pointers into a separate container; instance_snapshot() now takes care of that. It remains the caller's responsibility to ensure that all instances of that LLInstanceTracker subclass were allocated on the heap. Replace unkeyed static LLInstanceTracker::getInstance(T*) -- which returned nullptr if that instance had been destroyed -- with new getWeak() method returning std::weak_ptr<T>. Caller must detect expiration of that weak_ptr. Adjust tests accordingly. Use of std::weak_ptr to detect expired instances requires engaging std::shared_ptr in the constructor. We now store shared_ptrs in the static containers (std::map for keyed, std::set for unkeyed). Make LLInstanceTrackerBase a template parameterized on the type of the static data it manages. For that reason, hoist static data class declarations out of the class definitions to an LLInstanceTrackerStuff namespace. Remove the static atomic sIterationNestDepth and its methods incrementDepth(), decrementDepth() and getDepth(), since they were used only to forbid creation and destruction during traversal. Add a std::mutex to static data. Introduce an internal LockStatic class that locks the mutex while providing a pointer to static data, making that the only way to access the static data. The LLINSTANCETRACKER_DTOR_NOEXCEPT macro goes away because we no longer expect ~LLInstanceTracker() to throw an exception in test programs. That affects LLTrace::StatBase as well as LLInstanceTracker itself. Adapt consumers to the new LLInstanceTracker API. | |||
2020-03-18 | Merge master (v 6.3.9) into DRTVWR-440 | Dave Houlton | |
2020-03-18 | Merge branch 'master' into DRTVWR-483 | Andrey Lihatskiy | |
2020-03-18 | Merge branch 'master' into DRTVWR-482 | Andrey Lihatskiy | |
2020-03-18 | Merge branch 'master' into DRTVWR-460 | Andrey Lihatskiy | |
2020-03-18 | Merge branch 'master' into DRTVWR-500 | Andrey Lihatskiy | |
2020-02-25 | SL-12591 Fixed slider value comparison | Andrey Kleshchev | |
2020-02-18 | SL-12641 Remade 'Pick: Texture' floater to eliminate translation overlaps | Andrey Kleshchev | |
2020-02-12 | SL-12695 FIXED 'New' badges are not shown for some folders after resizing ↵ | maxim_productengine | |
'Received items' panel | |||
2020-02-12 | SL-12396 Triple clicking text in a textbox / textarea should only select the ↵ | maxim_productengine | |
current line | |||
2020-02-05 | Merge branch 'master' into DRTVWR-483 | Andrey Lihatskiy | |
2020-02-05 | Merge branch 'master' into DRTVWR-482 | Andrey Lihatskiy | |
2020-02-05 | Merge branch 'master' into DRTVWR-460 | Andrey Lihatskiy | |
2020-02-03 | Merge branch 'master' into DRTVWR-482 | Andrey Lihatskiy | |
2020-02-03 | Merge branch 'DRTVWR-501' into trunk | Andrey Lihatskiy | |
2020-02-03 | Merge branch 'DRTVWR-500' into DRTVWR-501 | Andrey Lihatskiy | |
2020-02-03 | Merge branch 'DRTVWR-499' into DRTVWR-500 | Andrey Lihatskiy | |
2020-01-28 | DRTVWR-440, merge in latest from 6.3.7 release | Dave Houlton | |
2020-01-28 | Merge branch 'master' of https://bitbucket.org/lindenlab/viewer-private into ↵ | Brad Payne (Vir Linden) | |
DRTVWR-481 Merge | |||
2020-01-27 | SL-12475 add Inventory Favorites tab | maxim_productengine | |
2020-01-20 | SL-12595 The checkbox overlaps buttons in the 'Delete selected item?' ↵ | andreykproductengine | |
notification | |||
2020-01-17 | SL-379 WIP Joint overrides tab | andreykproductengine | |
2020-01-09 | SL-11172 Scroll to focused object if object is not in visible area | andreykproductengine | |
2020-01-02 | SL-12484 EXP-696 Remade "Remember Password" checkbox to be multiline | andreykproductengine | |
2019-12-16 | Merge viewer-release 6.3.6 into viewwer-eep repo | Dave Houlton | |
2019-12-16 | merge | Brad Payne (Vir Linden) | |
2019-12-13 | Merged in lindenlab/viewer-release | AndreyL ProductEngine | |
2019-12-13 | Merged in lindenlab/viewer-release | AndreyL ProductEngine | |
2019-12-02 | SL-12003 FIXED Viewer Icons do not display in Profiles | maxim_productengine | |
2019-11-28 | Buildfix | AndreyL ProductEngine | |
2019-11-27 | Upstream merge from viewer-neko | AndreyL ProductEngine | |
2019-11-27 | Downstream merge from lindenlab/viewer-lynx | AndreyL ProductEngine | |
2019-11-27 | Merged in lindenlab/viewer-release | AndreyL ProductEngine | |
2019-11-22 | SL-12100 Premium Enhancements - Changes to rates to create Groups, UI Work | andreykproductengine | |
2019-11-22 | SL-12317 UI Changes to Group limits | maxim_productengine | |
2019-11-18 | SL-12305 More missing-file handling | andreykproductengine | |
instance().getCurFileName() was returning empty value despite supposedly non-empty filename | |||
2019-11-14 | Merged in lindenlab/viewer-release | AndreyL ProductEngine | |
2019-11-13 | Merge in from viewer-release 6.3.5 | Dave Houlton | |
2019-11-13 | Merged in lindenlab/viewer-release | AndreyL ProductEngine | |
2019-11-12 | Downstream merge from 494-maint-wassail | AndreyL ProductEngine | |
2019-11-12 | Buildfix | AndreyL ProductEngine | |
2019-11-12 | Merged in lindenlab/viewer-release | AndreyL ProductEngine | |
2019-11-11 | SL-6109 Removed LLDrawFrustum and used changes from EEP to prevent merge ↵ | andreykproductengine | |
conflicts | |||
2019-11-07 | Add text_valign to LLTextBase to specify the vertical alignment within a ↵ | Kitty Barnett | |
single document line The existing font_valign property is used as to position the entire document so it's impossible to top align a text editor with each line's text centered within that line's extents | |||
2019-11-07 | FIXED Calling LLTextBase::insertStringNoUndo() with more than one segment ↵ | Kitty Barnett | |
results in overlapping segment ranges Text is only inserted into the view model *after* the segments are added so if seg1_pos_start is the current EOF: -> 1st segment: getSegIterContaining(seg1_pos_start) returns the last segment and insertSegment() ends up properly adjusting its start/end position -> 2nd segment: getSegIterContaining(seg2_pos_start) returns mSegments.end() since its position is beyond the available and insertSegment() leaves the last 2 segments with overlapping ranges After the fix: -> if index runs past the end of all segments then mSegments.end() is returned (no change) -> if index is a position past the length of text but claimed by a segment then that segment is returned (change) -> if index specifies a position in the middle of the document unclaimed by any segment then the first segment after that position is returned (no change) (this does break the assertion that segment->mStart <= index <= segment->mEnd?) | |||
2019-11-06 | Characters can have more than one representation in LLFontFreetype | Kitty Barnett | |
* By default all viewer text will use B/W glyphs * Added temporary use_color attribute to LLTextBase for testing | |||
2019-10-31 | Merged in lindenlab/viewer-release | AndreyL ProductEngine | |
2019-10-28 | SL-6109 Fixed conflict resolution issue caused by menu accelerators | andreykproductengine | |
2019-10-23 | MAC build fix | andreykproductengine | |
2019-10-23 | Merged in lindenlab/viewer-release | AndreyL ProductEngine | |